home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Text / Textension / Include / ToolBoxDump.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-21  |  1.8 KB  |  118 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ToolBoxDump.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    xxx put writers here xxx
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>      1/4/94    EZ        first checked in
  13.  
  14. */
  15.  
  16. #ifndef _ToolBoxDump_
  17. #define _ToolBoxDump_
  18.  
  19. #ifndef __STDLIB__
  20. #include <stdlib.h>
  21. #endif
  22.  
  23. #ifndef __TYPES__
  24. #include <Types.h>
  25. #endif
  26.  
  27. #ifndef __ERRORS__
  28. #include <Errors.h>
  29. #endif
  30.  
  31. #ifndef __GESTALTEQU__
  32. #include <GestaltEqu.h>
  33. #endif
  34.  
  35. #if !defined(__LOWMEM__) && defined(qUniversalHeaders)
  36. #include <LowMem.h>
  37. #endif
  38.  
  39. #ifndef __FILES__
  40. #include <Files.h>
  41. #endif
  42.  
  43. #ifndef __MEMORY__
  44. #include <Memory.h>
  45. #endif
  46.  
  47. #ifndef __EVENTS__
  48. #include <Events.h>
  49. #endif
  50.  
  51. #ifndef __OSUtils__
  52. #include <OSUtils.h>
  53. #endif
  54.  
  55. #ifndef __QUICKDRAW__
  56. #include <QuickDraw.h>
  57. #endif
  58.  
  59. #ifndef __FONTS__
  60. #include <Fonts.h>
  61. #endif
  62.  
  63. #ifndef __RESOURCES__
  64. #include <Resources.h>
  65. #endif
  66.  
  67. #ifndef __MENUS__
  68. #include <Menus.h>
  69. #endif
  70.  
  71. #ifndef __SCRIPT__
  72. #include <Script.h>
  73. #endif
  74.  
  75. #ifndef __TOOLUTILS__
  76. #include <ToolUtils.h>
  77. #endif
  78.  
  79. #ifndef __FIXMATH__
  80. #include <FixMath.h>
  81. #endif
  82.  
  83. #if !defined(qUniversalHeaders)
  84. #endif
  85.  
  86. // AMB - Stuff for accessing quickdraw globals from a shared library
  87.  
  88. #if !defined(qUniversalHeaders)
  89. #include "SysEqu.h"
  90. #endif
  91.  
  92. typedef struct
  93. {
  94.     char    privates[76];
  95.     long    randSeed;
  96.     BitMap    screenBits;
  97.     Cursor    arrow;
  98.     Pattern    dkGray;
  99.     Pattern    ltGray;
  100.     Pattern    gray;
  101.     Pattern    black;
  102.     Pattern    white;
  103.     GrafPtr    thePort;
  104. } QDGlobalRec;
  105.  
  106.  
  107. #if !defined(qUniversalHeaders)
  108. #define ASLMQDGlobals ( *(QDGlobalRec*)( **(char***)CurrentA5 \
  109.                             - sizeof(QDGlobalRec) + sizeof(GrafPtr) ) )
  110. #else
  111. #define ASLMQDGlobals ( *(QDGlobalRec*)( *(char**)LMGetCurrentA5() \
  112.                             - sizeof(QDGlobalRec) + sizeof(GrafPtr) ) )
  113. #endif
  114.  
  115. #endif
  116.  
  117. //***************************************************************************************************
  118.